package com.one.group.model.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;

/**
 * {@code @Create:}  2025-09-28  14 : 55
 * {@code @Author:} Cherry
 * {@code @ToUser:} 凡是发生,皆有利于我。
 * ------------------------------------
 * {@code @note:}
 */
@Data
public class LoginDto implements Serializable {

    @Pattern(regexp = "^\\w{5,18}$",message = "用不名不合法")
    private String username;

    @Pattern(regexp = "^\\w{6,20}$",message = "密码不合法")
    private String password;


}
